from collections import deque

# 请在此输入您的代码
h, w = map(int, input().split())
z = w // 4
f = w % 4
l = list("2025") * z + list("2025")[:f]
q = deque(l)
for _ in range(h):
    print("".join(q))
    q.append(q.popleft())
